const {
    http
} = require("../../utils/utils")
Page({
    data: {
        name: "",
        picUrl: "",
        company: ""
    },
    onLoad: function (options) {
        var {
            id
        } = options;
        // console.log(options)
        var url = `http://47.108.197.28:3000/album?id=${id}`;
        http({
            url,
            success: res => {
                console.log(res.data.album);
                var {name,picUrl,company}=res.data.album;
                this.setData({
                    name,
                    picUrl,
                    company
                })

            }
        })
    }
})